package com.rcache.core.persistence;

/**
 * @desc 持久化策略枚举
 */
public enum EPersistence {
    SIZE("com.rcache.core.persistence.DateSizePersistenceImpl","SIZE"),
    ALWAYS("com.rcache.core.persistence.DataPersistenceImpl","ALWAYS"),
    TIME("com.rcache.core.persistence.DataTimePersistenceImpl","TIME")
    ;
    private String className;
    private String name;
    EPersistence(String className) {
        this.className = className;
    }

    EPersistence(String className, String name) {
        this.className = className;
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
